﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DotNetNuke.Services.Exceptions;

namespace CharityGamesOnline.Modules.Common
{
    public partial class Popup : CGOBase
    {
        private string triggerCssName;
        public string TriggerCssName
        {
            get
            {
                return triggerCssName;
            }
            set
            {
                triggerCssName = value;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                RegisterScripts();
            }

            catch (Exception exc)
            {
                //Module failed to load 
                Exceptions.ProcessModuleLoadException(this, exc);
            }
        }

        private void RegisterScripts()
        {
            this.Page.ClientScript.RegisterStartupScript(typeof(Popup), "cs.jquery", string.Format("<script type=\"text/javascript\" src=\"{0}\" ></script>", this.Page.ResolveUrl("Script/jquery-1.3.2.min.cs.js")), false);
            this.Page.ClientScript.RegisterStartupScript(typeof(Popup), "cs.jquery.popup", string.Format("<script type=\"text/javascript\" src=\"{0}\" ></script>", this.Page.ResolveUrl("Script/jqModal.js")), false);
        }

 

 

    }
}